home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / stingray.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  54 lines

  1. // defines Stingray
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_STINGRAY_GSH
  8. #define INCLUDED_STINGRAY_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_Stingray
  16. {
  17.     file "units\Stingray.RIF"
  18.     name "Stingray"
  19.     hotspot "dum flash"
  20.     alternate hotspot "dum flash L"
  21. }
  22.  
  23. character Chr_Stingray : Chr_DefaultBaddie
  24. {
  25.     turning speed   0.3    // this is in revolutions per second
  26.     walking speed   1.0    // this is in animation cycles per second
  27.     weapon          enemy laser
  28.     strength        5    // initial strength points
  29.     aim             1    // how many degrees off target he can be at most
  30.     sight angle    80    // in degrees
  31.     sight range     8    // in metres
  32.     hearing range    20    // in metres
  33.     aggression    0.9    // from 0 to 1
  34.     gun yaw angle    0    // in degrees
  35.     description        drone description
  36. }
  37.  
  38. role Rol_Stingray : Rol_DefaultRobot
  39. {
  40.     shape            Hcy_Stingray
  41.     
  42.     character        Chr_Stingray
  43.         
  44.     identifier        "Stingray"
  45.  
  46.  
  47.     ai                bot
  48. }
  49.  
  50. ////////////////////////////////////////////////////////////////////////////////////
  51.  
  52. // end wrapper - for preventing multiple or recursive inclusions
  53. #endif // !INCLUDED_STINGRAY_GSH
  54.